import api from './index'
// axios
import request from '@/utils/request'

// 获取二级菜单 @type=
export function getType(params) {
  return request({
    url: '/api_ckf/lctb_ckf/dict/getType',
    method: 'get',
    params,
    hideloading: true
  })
}

// 获取二级菜单下咨询列表
// pageNum	query	否	1	
// pageSize	query	否	10	
// dictType	query	否		
// subType	query	否		
// noticeTitle	query	否		
// Authorization	header	否	{{ACCESS_TOKEN}}

export function getMyList(params) {
  return request({
    url: '/api_ckf/lctb_ckf/notice/myList',
    method: 'get',
    params,
    hideloading: true
  })
}

// 获取文章的详情
export function getNoticeInfo(params) {
  return request({
    url: '/api_ckf/lctb_ckf/notice/getNoticeInfo',
    method: 'get',
    params,
    hideloading: true
  })
}